package com.itheima.reggie.service;

import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.Setmeal;

import java.util.List;

public interface SetmealService {
    boolean save(SetmealDto setmealDto);

    //查询所有套餐和分类并且分页
    Page<SetmealDto> findAll(Integer page,Integer pageSize,String name);

    //批量删除
    void delete(Long[] ids, Long updateUser);

    boolean updateStatus(Long[] ids,Integer status);
    //boolean updateStatus2(Long[] ids);

    //数据回显
    SetmealDto findById(Long id);

    //修改
    void updateSetmealAndSetmealDish(SetmealDto setmealDto);

    //根据分类id查询套餐
    List<Setmeal> findByCategoryIdAndStatus(Long categoryId, Integer status);
}
